package Text1;
public class text1 {
    public static void main(String[] args) {
        AA aa=new BB();
        System.out.println(aa.show());
    }
}
class AA{
    public int i=10;
    public int show(){
        return getI();
    }
    public int getI() {
        return i;
    }
}
class BB extends AA{
    public int i=20;
    public int getI() {
        return i;
    }
}
